package com.carnation.utils;

import javax.servlet.http.HttpServletRequest;

public class SessionUtils {
	
	public static boolean isValid(HttpServletRequest httpServletRequest,String attrName){
		if(attrName == null || attrName.isEmpty() || httpServletRequest == null){
			return false;
		}
		if(httpServletRequest.getSession().getAttribute(attrName) == null){
			return false;
		}
		else{
			return true;
		}
	}
}
